package com.alibaba.cloud.application.handler;

import org.springframework.stereotype.Component;

import com.alibaba.cloud.domain.BaseMessage;
import com.alibaba.cloud.domain.PhoneMessage;

import lombok.RequiredArgsConstructor;

/**
 * @author cruise
 */
@Component
@RequiredArgsConstructor
public class PhoneMessageHandler extends BaseMessageHandler {

    @Override
    public void send(BaseMessage message) {
        if (interestedMessage(message)) {

        }
    }

    @Override
    public void record(BaseMessage message) {

    }

    @Override
    public boolean interestedMessage(BaseMessage message) {
        return message instanceof PhoneMessage;
    }

}
